# chat/urls.py
from django.urls import path, re_path
from .views import (
    conversation_list, conversation_create, conversation_detail,
    conversation_messages, conversation_search,
    message_create, user_status_me
)

urlpatterns = [
    path('conversations/', conversation_list, name='conversation-list'),
    path('conversations/create/', conversation_create, name='conversation-create'),
    path('conversations/<int:pk>/', conversation_detail, name='conversation-detail'),
    path('conversations/messages/', conversation_messages, name='conversation-messages'),
    path('conversations/search/', conversation_search, name='conversation-search'),
    path('messages/create/', message_create, name='message-create'),
    path('user-status/me/', user_status_me, name='user-status-me'),
]